package com.jumi.microservice.enums;

import com.baomidou.mybatisplus.core.enums.IEnum;

public enum JoinType implements IEnum<Integer> {
    间接邀请(0),直接邀请(1);

    private Integer value;

    JoinType(int value) {
        this.value=value;
    }

    @Override
    public Integer getValue() {
        return this.value;
    }

    public static JoinType getItem(Integer value){
        JoinType[] values = JoinType.values();
        for (JoinType joinType : values) {
            Integer v = joinType.getValue();
            if(v==value){
                return joinType;
            }
        }
        return null;
    }
}
